﻿using System.ComponentModel.DataAnnotations;
using Abp.Authorization.Users;

namespace Vecen.BangChuang.Models.TokenAuth {
    /// <summary>
    /// 认证请求结构
    /// </summary>
    public class AuthenticateModel {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        [MaxLength(AbpUserBase.MaxEmailAddressLength)]
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required]
        [MaxLength(AbpUserBase.MaxPlainPasswordLength)]
        public string Password { get; set; }

        /// <summary>
        /// 是否记住(web应用)
        /// </summary>
        public bool RememberClient { get; set; }
    }
}
